<!DOCTYPE html>
<html xmlns:th="http://www.thyleaf.org">
<head th:include="common/header_css::header('霸王餐小程序后台管理-配置管理','%mfile%datepicker')"></head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox float-e-margins">
            <div th:replace="common/toolbar::toolbar('配置表管理')"></div>
            <div th:replace="common/search::search('%add%types')"></div>
        </div>
    </div>
    <!--添加Config模态框-->
    <div th:include="admin/config/add::add"></div>

    <!--修改Config模态框-->
    <div th:include="admin/config/edit::edit"></div>

    <!--设置行业分类-->
    <div id="setnavform" class="modal fade" aria-hidden="true">
        <div class="modal-dialog" style="width: 800px;">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="row">
                        <h3 class="m-t-none m-b">设置行业分类</h3>
                        <div class="col-sm-12">
                            <div class="ibox float-e-margins">
                                <div class="ibox-content">
                                    <form id="mform" method="post" class="form-horizontal" action="setnav"
                                          onsubmit="return checksetnavModify()">
                                        <div class="row">
                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">名称*</label>
                                                    <div class="col-sm-8">
                                                        <input class="form-control" id="name2" name="name"
                                                               required type="text" maxlength="100"/>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">
                                                    </label>
                                                    <div class="col-sm-8">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-md-12">
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">行业分类图标</label>
                                                    <div class="col-sm-10">
                                                        <input id="mfilepic" name="mfile" type="file" class="file"/>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-sm-4 col-sm-offset-2">
                                                <button class="btn btn-primary" type="submit">保存内容</button>
                                                <button data-toggle="modal" type="button" class="btn btn-white" href="#setnavform">取消</button>
                                            </div>
                                        </div>
                                        <input id="hidpic" name="pic" type="hidden" value="" />
                                        <input id="hidnvalue" name="nvalue" type="hidden" value=""/>
                                        <input id="hidntype" name="ntype" type="hidden" value="3"/>
                                        <input name="level" type="hidden" value="1"/>
                                        <input name="state" type="hidden" value="-1"/>
                                        <input name="isSelfIcon" type="hidden" value="-1"/>
                                        <input name="isSystem" type="hidden" value="-1"/>
                                        <input name="jianchen" type="hidden" value=""/>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script th:inline="javascript">
        var msg =[[${msg}]];
        if(msg!=null&&msg.length>0)swal("提示",msg,"error")
    </script>
    <div th:include="common/footer_js::footer"></div>
    <script src="/js/admin/config.js"></script>
    <input type="hidden" id="version" th:value="${version}">
</body>
</html>
